home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
comm
/
dlg
/
DLG_Correct_20.lha
/
DLG_PreCorrect.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-07-11
|
2KB
|
47 lines
/*************************************************************************/
/* DLG Correct / PDQ Export */
/* Solution Fix v2.0 */
/* */
/* Pre-Process Module */
/* */
/* Created by Jon Godfrey (RE0273) */
/* Fido: 1:212/1005 INet: jdgodfre@slonet.org */
/*************************************************************************/
parse arg arg_list
parse var arg_list uname port area msgnum
uname=strip(uname,b) ;port=strip(port,b); area=strip(area,b); msgnum=strip(msgnum,b)
no_filenote_flag = 0
tempfile = 't:dlg_correct.'||port
delete_tempfile = 'c:delete >NIL: '||tempfile
filenote_file = 't:filenote.'||port
if area=="PVT" then
msg_path = 'USER:'||uname||'/'||msgnum||'.msg'
else
msg_path = 'MSG:'||area||'/'||msgnum||'.msg'
list_msg_info = 'c:list >'||tempfile||' '||msg_path||' nohead'
address command list_msg_info
call open(fn,tempfile,R)
filename = readln(fn)
filenote = readln(fn)
if eof(fn) = 1 then no_filenote_flag = 1
call close(fn)
address command delete_tempfile
if no_filenote_flag = 0 then do
filenote = right(filenote,length(filenote)-2)
call open(note,filenote_file,W)
writeln(note,msg_path)
writeln(note,filenote)
call close(note)
end
exit